<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
            "http://www.w3.org/TR/REC-html40/loose.dtd">
<HTML>
<HEAD>



<META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<META name="GENERATOR" content="hevea 1.08">
<LINK rel="stylesheet" type="text/css" href="tutorial.css">
<TITLE>
Running the Program
</TITLE>
</HEAD>
<BODY >
<A HREF="tutorial038.html"><IMG SRC ="previous_motif.gif" ALT="Previous"></A>
<A HREF="tutorial037.html"><IMG SRC ="contents_motif.gif" ALT="Up"></A>
<A HREF="tutorial040.html"><IMG SRC ="next_motif.gif" ALT="Next"></A>
<HR>

<H2 CLASS="section"><A NAME="htoc79">5.2</A>&nbsp;&nbsp;Running the Program</H2>
To start the program, the query `colour' is run: type <CODE>colour</CODE> 
into TkECL<SUP><I>i</I></SUP>PS<SUP><I>e</I></SUP>'s query entry window, followed by the
return key. The program should run, and display the map to be coloured in a
window, which is then coloured, arriving at the
incorrect solution as shown previously. The program uses
the standard `generate-and-test' method, so you will see colour flashing in
the countries as the program tries different colours for them.<BR>
<BR>
The map display has two buttons: pressing <TT>More</TT> will cause the program to
find an alternate way of colouring the map. Pressing <TT>Done</TT> will end the
program and return control to ECL<SUP><I>i</I></SUP>PS<SUP><I>e</I></SUP>. You can press <TT>More</TT> to get more
solutions and see that the program returns more solutions that colour
countries 3 and 4 to the same colour (along with some that are correct).<BR>
<BR>
Press <TT>Done</TT> to finish the execution. We will now debug this program.<BR>
<BR>
<HR>
<A HREF="tutorial038.html"><IMG SRC ="previous_motif.gif" ALT="Previous"></A>
<A HREF="tutorial037.html"><IMG SRC ="contents_motif.gif" ALT="Up"></A>
<A HREF="tutorial040.html"><IMG SRC ="next_motif.gif" ALT="Next"></A>
</BODY>
</HTML>
